package ArrayList;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList1 = new ArrayList<>();
        List<Integer> arrayList = new ArrayList<>();
        arrayList.add(12);
        arrayList.add(55);
        arrayList.add(1);
        arrayList.add(11);
        arrayList.add(666);
        arrayList.add(69);
        arrayList.remove(new Integer(12));
        //arrayList.remove(12);
        arrayList.remove(2);
        arrayList.set(3,99999);
        System.out.println(arrayList.contains(12));
        System.out.println(arrayList.contains(666));
        System.out.println(arrayList);
    }
}
